package com.itheima.a01abstractdemo1;

public class Frog extends Animal{
    //构造方法
    public Frog() {
    }

    public Frog(String name, int age) {
        super(name, age);
    }


    //重写方法
    @Override
    public void eat() {
        System.out.println("吃虫子");
    }
}
